/**
 * Creating a sidebar enables you to:
 - create an ordered group of docs
 - render a sidebar for each doc of that group
 - provide next/previous navigation

 The sidebars can be generated from the filesystem, or explicitly defined here.

 Create as many sidebars as you want.
 */

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
  // By default, Docusaurus generates a sidebar from the docs folder structure
  // tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
  dataStructureAlgorithm: [
    'dataStructureAlgorithm/introduction',
    'dataStructureAlgorithm/复杂度',
    {
      type: 'category',
      label: '数据结构',
      link: {
        type: 'generated-index',
      },
      collapsed: false,
      items: [
        'dataStructureAlgorithm/物理结构和逻辑结构',
        'dataStructureAlgorithm/栈和队列',
        'dataStructureAlgorithm/散列表',
        {
          type: 'category',
          label: '树',
          link: {
            type: 'generated-index',
          },
          collapsed: true,
          items: [
            'dataStructureAlgorithm/树',
            'dataStructureAlgorithm/数据结构/二叉树',
          ],
        },
      ],
    },

    {
      type: 'category',
      label: '排序算法',
      link: {
        type: 'generated-index',
      },
      collapsed: false,
      items: [
        'dataStructureAlgorithm/排序/冒泡排序',
        'dataStructureAlgorithm/排序/鸡尾酒排序',
        'dataStructureAlgorithm/排序/快速排序',
        'dataStructureAlgorithm/排序/堆排序',
        'dataStructureAlgorithm/排序/选择排序',
        'dataStructureAlgorithm/排序/插入排序',
        'dataStructureAlgorithm/排序/希尔排序',
        'dataStructureAlgorithm/排序/归并排序',
        'dataStructureAlgorithm/排序/基数排序',
      ],
    },
    // 'dataStructureAlgorithm/unit3',
    'dataStructureAlgorithm/advanced',
    'dataStructureAlgorithm/面试题',
    // 'dataStructureAlgorithm/unit5',
    // 'dataStructureAlgorithm/unit6',
    // 'dataStructureAlgorithm/unit7',
    // 'dataStructureAlgorithm/unit8',
  ],
  // But you can create a sidebar manually
  /*
  tutorialSidebar: [
    {
      type: 'category',
      label: 'Tutorial',
      items: ['hello'],
    },
  ],
   */
};

module.exports = sidebars;
